//
//  ClassroomListTableViewCell.m
//  AnXin100
//
//  Created by 王合润 on 10/24/18.
//  Copyright © 2018 tzhg. All rights reserved.
//

#import "ClassroomListTableViewCell.h"

@interface ClassroomListTableViewCell ()

@property (weak, nonatomic) IBOutlet UIButton *playBtn;


@end

@implementation ClassroomListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [_playBtn setTitle:@"试看" forState:UIControlStateNormal];
    [_playBtn setTitleColor:[UIColor colorWithHex:0xFF9E05] forState:UIControlStateNormal];
    _playBtn.titleLabel.font = [UIFont systemFontOfSize:14];
    [_playBtn setImage:[UIImage imageNamed:@"play"] forState:UIControlStateNormal];
    _playBtn.titleEdgeInsets = UIEdgeInsetsMake(0, 0, 0, -(_playBtn.frame.size.width - _playBtn.titleLabel.frame.origin.x -_playBtn.titleLabel.frame.size.width));
    //button图片的偏移量
    _playBtn.imageEdgeInsets = UIEdgeInsetsMake(0, -(_playBtn.imageView.frame.origin.x ), 0, _playBtn.imageView.frame.origin.x);

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
